<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Magic 口碑营销平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="stylesheet" href="../css/magic.css">
<link rel="stylesheet" href="../css/work-magic.css">
</head>
<body>
<div id="wrap">
  <form id="validate">
    <h2 class="title">添加任务</h2>
    <table>
      <tbody>
        <tr>
          <th><abbr title="必填项" class="require">*</abbr><label for="task-title">任务名称：</label></th>
          <td><input type="text" name="" class="text s-size" id="task-title"></td>
        </tr>
        <tr>
          <th class="top"><abbr title="必填项" class="require">*</abbr><label for="task-desc">任务描述：</label></th>
          <td><textarea name="" class="s-size" id="task-desc"></textarea></td>
        </tr>
        <tr>
          <th class="top"><abbr title="必填项" class="require">*</abbr><label for="task-rule-1">任务规则：</label></th>
          <td id="task-rules-wrap">
          	<div><button id="add-task-rule">新增任务规则</button></div>
            <div style="margin-top:10px;" class="task-rules"><input type="text" name="" class="text s-size readonly" id="task-rule-1" readonly="readonly"> <button class="select-task-rule">选择发送规则</button> <button class="clear">清空</button> <button class="delete">删除</button></div>
          </td>
        </tr>
        <tr>
          <th><abbr title="必填项" class="require">*</abbr><label for="task-people">选择人群：</label></th>
          <td><input type="text" name="" class="text s-size readonly" id="task-people" readonly="readonly"> <button>选择人群</button> <button>上传文件</button></td>
        </tr>
        <tr>
          <th><label for="founder">创建人：</label></th>
          <td><input type="text" name="" class="text s-size" id="founder"></td>
        </tr>
        <tr>
          <th></th>
          <td><input type="submit" value="保存" class="btn">
            <button id="back">关闭</button></td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<script type="text/javascript" src="../js/jquery-1.4.2.js"></script>
<script src="../js/magic.js"></script>
<script>
magic.init("task_add",{
					 		"taskRulesListUrl" : "task_rules_list.html",
							"backUrl" : "task_admin.html"
					 });
</script>
</body>
</html>